package com.boomsecret.annotation;

/**
 * Created by wangjinliang on 2018/1/17.
 */
public class BeanFactory {

    public static <T> T getBeanByClass(Class<T> clz) {
        try {
            T instance = clz.newInstance();
            return new AnnotationProxy<T>().proxy(instance);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
